package com.mycompany.app.hr.eleave.service;

public interface ILeaveEntitlementService {

    public int getEntitledDays(String gid, int leaveTypeId);

    /**
     * getAlEntitle().floatValue()
                + getAlCredit().floatValue()
                - getAlConsumed().floatValue()
                + getShutdownReplace().floatValue()
                - getShutdownConsumed().floatValue());
     * @param gid
     * @param year
     * @return
     */
    public Float getAlBalance(String gid, int year);
    
    /**
     * public Float getAvailableAl() {
        if (getAlBalance() == null || getAlApplied() == null)
            return new Float(0);
        java.text.DecimalFormat   df =   new java.text.DecimalFormat("########.0000"); 
        return new Float(
        df.format(getAlBalance().floatValue() - getAlApplied().floatValue()));
    }
     * @param gid
     * @param year
     * @return
     */
    public Float  getAvailableAl(String gid, int year);

}
